package com.zmn.oms.business.interfaces.completecode;

import com.zmn.oms.common.exception.OmsBaseException;
import com.zmn.oms.model.dto.completecode.CompleteCodeDTO;

/**
 * 类描述：完成码
 *
 * @author liuying
 * @date 2021/05/06 16:53
 */
public interface CompleteCodeBService {

    /**
     * 验证码完成码 是否已存在
     *
     * @param orderId
     * @param workId
     */
    void verifyCompleteCodeExists(Long orderId, Long workId) throws OmsBaseException;

    /**
     * @param workId
     * @return
     */
    boolean completeCodeExists(Long workId);

    /**
     * 获取完成码
     *
     * @param workId
     */
    String getCompleteCode(Long workId);

    /**
     * 新增完成码
     *
     * @param completeCodeDTO
     */
    void addCompleteCode(CompleteCodeDTO completeCodeDTO);
}
